package com.blx.utils;
//package com.elong.groupon.bms.utils;
//
//import org.apache.cxf.endpoint.Client;
//import org.apache.cxf.jaxws.endpoint.dynamic.JaxWsDynamicClientFactory;
//
//public class WebServiceClientHelper {
//
//	public static String callService(String wsUrl,String invokeMothod,Object ...arg) throws Exception{
//		JaxWsDynamicClientFactory dcf = JaxWsDynamicClientFactory.newInstance();
//		Client client = dcf.createClient(wsUrl);
//		Object[] result = client.invoke(invokeMothod,arg);
//		System.out.println(result);
//		return (String) result[0];
//	}
//	public static void main(String[] args) throws Exception {
//		String url = "webinsideservice.elong.com/fs/HotelImageWebService.asmx";
//		String method = "GetHotelCoverImageByHotelIds";
//		String ret = WebServiceClientHelper.callService(url, method, "10");
//		System.out.println(ret);
//	}
//}
